package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;

import java.math.BigDecimal;
import java.io.Serializable;

/**
 * <p>
 * 代理资金账户表
 * </p>
 *
 * @author leehao
 * @since 2019-07-10
 */
public class AgAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "agid", type = IdType.INPUT)
    private Integer agid;

    /**
     * 用户ID
     */
    private Integer cid;

    /**
     * 余额
     */
    private BigDecimal money;

    /**
     * 贡献值
     */
    private BigDecimal donate;
    
    /**
     * 共享值
     */
    private BigDecimal share;
    
    /**
     * 冻结贡献值
     */
    private BigDecimal freezeDonate;

    /**
     * 冻结余额
     */
    private BigDecimal freezeMoney;

    /**
     * 版本号用作于乐观锁
     */
    @Version
    private Integer version;

    public AgAccount() {
    }

    public AgAccount(Integer agid,Integer cid) {
        this.agid = agid;
        this.cid = cid;
    }

    public BigDecimal getFreezeMoney() {
        return freezeMoney;
    }

    public void setFreezeMoney(BigDecimal freezeMoney) {
        this.freezeMoney = freezeMoney;
    }

    public BigDecimal getFreezeDonate() {
		return freezeDonate;
	}

	public void setFreezeDonate(BigDecimal freezeDonate) {
		this.freezeDonate = freezeDonate;
	}

	public BigDecimal getShare() {
		return share;
	}

	public void setShare(BigDecimal share) {
		this.share = share;
	}

	public Integer getAgid() {
        return agid;
    }

    public void setAgid(Integer agid) {
        this.agid = agid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }
    public BigDecimal getDonate() {
        return donate;
    }

    public void setDonate(BigDecimal donate) {
        this.donate = donate;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "AgAccount{" +
        "agid=" + agid +
        ", money=" + money +
        ", donate=" + donate +
        ", version=" + version +
        "}";
    }
}
